<?php

 


require_once 'PHPUnit/Util/Filter.php';
require_once 'PHPUnit/Util/TestDox/ResultPrinter.php';

PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');


class PHPUnit_Util_TestDox_ResultPrinter_HTML extends PHPUnit_Util_TestDox_ResultPrinter
{
    
    protected function startRun()
    {
        $this->write('<html><body>');
    }

    
    protected function startClass($name)
    {
        $this->write('<h2>' . $name . '</h2><ul>');
    }

    
    protected function onTest($name)
    {
        $this->write('<li>' . $name . '</li>');
    }

    
    protected function endClass($name)
    {
        $this->write('</ul>');
    }

    
    protected function endRun()
    {
        $this->write('</body></html>');
    }
}
?>
